package com.neo.goods.service.impl;

import com.neo.common.domain.Goods;
import com.neo.goods.mapper.GoodsMapper;
import com.neo.goods.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: chenb
 * @CreateTime: 2024/3/21 8:32
 * @Description:
 */
@Service
public class GoodsServiceImpl implements GoodsService {

  @Autowired
  private GoodsMapper goodsMapper;

  @Override
  public int add(Goods goods) {
    goodsMapper.insert(goods);
    int id = goods.getId();
    return id;
  }

}
